﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebStudio.Business.Entity
{ 

    ///<summary>
    /// An object representation of the 'CategoryTB' table. [No description for this table in the database]	
    ///</summary>
    /// <remarks>
    /// </remarks>
    [Serializable]
    public class CategoryEntity
    {
        private PCategoryEntity _categoryEntity;
        ///<summary>
        /// Initializes a new instance of the <see cref="CategoryEntity"/> class.
        ///</summary>
        public CategoryEntity()
        {
            _categoryEntity = new PCategoryEntity();
        }

        #region Public members

        ///<summary>
        /// CategoryDesc
        ///</summary>
        public String CategoryDesc { get; set; }

        ///<summary>
        /// CategoryId
        ///</summary>
        public Int32 CategoryId { get; set; }

        ///<summary>
        /// CategoryName
        ///</summary>
        public String CategoryName { get; set; }

        ///<summary>
        /// ParentId
        ///</summary>
        //public Int32 ParentId { get; set; }
        public PCategoryEntity CategoryInfo
        {
            get { return _categoryEntity; }
            set { _categoryEntity = value; }
            
        }

        /// <summary>
        /// 内码
        /// </summary>
        public String InnerCode { get; set; }

        /// <summary>
        /// 子类目个数
        /// </summary>
        public Int32 SubCatergoryCount { get; set; }

        #endregion

    }
}
